import service from '@/utils/request';

// 获取社群分类列表
export function getCommunityCategory(data) {
  return service({
    url: `/api/system/communityType/findTypePage`,
    method: 'post',
    data,
  });
}

// 社群分类下拉
export function CommunityCategoryType(data) {
  return service({
    url: `/api/system/communityType/communityTypeList`,
    method: 'post',
    data
  });
}

// 社群分类删除
export function deleteCommunityCategory(id) {
  return service({
    url: `/api/system/communityType/deleteCommunityType?communityTypeId=${id}`,
    method: 'get',
  });
}

// 社群分类修改
export function updateCommunityCategory(data) {
  return service({
    url: `/api/system/communityType/modifyCommunityType`,
    method: 'post',
    data
  });
}
